package com.ckh.springboot.service.impl;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.log.Log;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ckh.springboot.common.Constants;
import com.ckh.springboot.controller.dto.UserDTO;
import com.ckh.springboot.controller.dto.UserPasswordDTO;
import com.ckh.springboot.entity.Menu;
import com.ckh.springboot.entity.SysClass;
import com.ckh.springboot.entity.User;
import com.ckh.springboot.exception.ServiceException;
import com.ckh.springboot.mapper.RoleMapper;
import com.ckh.springboot.mapper.RoleMenuMapper;
import com.ckh.springboot.mapper.SysClassMapper;
import com.ckh.springboot.mapper.UserMapper;
import com.ckh.springboot.service.IMenuService;
import com.ckh.springboot.service.ISysClassService;
import com.ckh.springboot.service.IUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ckh
 * @since 2022-04-04
 */
@Service
public class SysClassServiceImpl extends ServiceImpl<SysClassMapper, SysClass> implements ISysClassService {

    @Override
    public void updateClockStatus() {
        baseMapper.updateClockStatus();
    }

    @Override
    public List<User> getClassInfo(Integer classId) {
        return baseMapper.getClassInfo(classId);
    }

    @Override
    public Page<SysClass> getSysClassList(Page<SysClass> page, String name) {
        return baseMapper.getSysClassList(page,name);
    }
}
